﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001D9 RID: 473
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeStoryBuffList : IMessage<ChallengeStoryBuffList>, IMessage, IEquatable<ChallengeStoryBuffList>, IDeepCloneable<ChallengeStoryBuffList>, IBufferMessage
	{
		// Token: 0x1700063F RID: 1599
		// (get) Token: 0x0600156A RID: 5482 RVA: 0x0003D190 File Offset: 0x0003B390
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeStoryBuffList> Parser
		{
			get
			{
				return ChallengeStoryBuffList._parser;
			}
		}

		// Token: 0x17000640 RID: 1600
		// (get) Token: 0x0600156B RID: 5483 RVA: 0x0003D197 File Offset: 0x0003B397
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeStoryBuffListReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000641 RID: 1601
		// (get) Token: 0x0600156C RID: 5484 RVA: 0x0003D1A9 File Offset: 0x0003B3A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeStoryBuffList.Descriptor;
			}
		}

		// Token: 0x0600156D RID: 5485 RVA: 0x0003D1B0 File Offset: 0x0003B3B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryBuffList()
		{
		}

		// Token: 0x0600156E RID: 5486 RVA: 0x0003D1C3 File Offset: 0x0003B3C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryBuffList(ChallengeStoryBuffList other) : this()
		{
			this.buffList_ = other.buffList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600156F RID: 5487 RVA: 0x0003D1ED File Offset: 0x0003B3ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryBuffList Clone()
		{
			return new ChallengeStoryBuffList(this);
		}

		// Token: 0x17000642 RID: 1602
		// (get) Token: 0x06001570 RID: 5488 RVA: 0x0003D1F5 File Offset: 0x0003B3F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BuffList
		{
			get
			{
				return this.buffList_;
			}
		}

		// Token: 0x06001571 RID: 5489 RVA: 0x0003D1FD File Offset: 0x0003B3FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeStoryBuffList);
		}

		// Token: 0x06001572 RID: 5490 RVA: 0x0003D20B File Offset: 0x0003B40B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeStoryBuffList other)
		{
			return other != null && (other == this || (this.buffList_.Equals(other.buffList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001573 RID: 5491 RVA: 0x0003D240 File Offset: 0x0003B440
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.buffList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001574 RID: 5492 RVA: 0x0003D274 File Offset: 0x0003B474
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001575 RID: 5493 RVA: 0x0003D27C File Offset: 0x0003B47C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001576 RID: 5494 RVA: 0x0003D285 File Offset: 0x0003B485
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.buffList_.WriteTo(ref output, ChallengeStoryBuffList._repeated_buffList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001577 RID: 5495 RVA: 0x0003D2AC File Offset: 0x0003B4AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.buffList_.CalculateSize(ChallengeStoryBuffList._repeated_buffList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001578 RID: 5496 RVA: 0x0003D2E5 File Offset: 0x0003B4E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeStoryBuffList other)
		{
			if (other == null)
			{
				return;
			}
			this.buffList_.Add(other.buffList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001579 RID: 5497 RVA: 0x0003D313 File Offset: 0x0003B513
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600157A RID: 5498 RVA: 0x0003D31C File Offset: 0x0003B51C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U && num != 74U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.buffList_.AddEntriesFrom(ref input, ChallengeStoryBuffList._repeated_buffList_codec);
				}
			}
		}

		// Token: 0x040008D7 RID: 2263
		private static readonly MessageParser<ChallengeStoryBuffList> _parser = new MessageParser<ChallengeStoryBuffList>(() => new ChallengeStoryBuffList());

		// Token: 0x040008D8 RID: 2264
		private UnknownFieldSet _unknownFields;

		// Token: 0x040008D9 RID: 2265
		public const int BuffListFieldNumber = 9;

		// Token: 0x040008DA RID: 2266
		private static readonly FieldCodec<uint> _repeated_buffList_codec = FieldCodec.ForUInt32(74U);

		// Token: 0x040008DB RID: 2267
		private readonly RepeatedField<uint> buffList_ = new RepeatedField<uint>();
	}
}
